﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using MockPrjTeam4.Common;
using MockPrjTeam4.Biz;
using MockPrjTeam4.Entity;

namespace MockPrjTeam4.Pages.Views
{
    public partial class DetailContact : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            int id = Methods.ConvertNumber(Request.QueryString["ID"]);
            Contacts contact = ContactBiz.GetContactById(id);
            lblName.Text = contact.FirstName + " " + contact.SurName;
            lblType.Text = contact.ContactType;
            lblEmail.Text = contact.Email;
            lblJob.Text = contact.JobRole;
            lblPhone.Text = contact.MobilePhone;
        }
    }
}